package com.tencent.qcloud.tim.uikit.config;

/**
 * 创建者 zx
 * 创建时间 2020/12/25 17:44
 */
public enum SysUserConfig {

    SYSTEM_NOTICE("shangbangzhuan223232323232", "系统通知"),
    REPORT_NOTICE("ReportNotice", "举报通知"),
    CHECK_NOTICE("taskCheck", "审核通知"), //审核
    TASK_NOTICE("myTask", "任务通知");


    SysUserConfig(String id, String name) {
        this.name = name;
        this.id = id;
    }

    private String id;
    private String name;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static SysUserConfig CreateSysUserConfig(String id) {
        if (SYSTEM_NOTICE.id.equals(id)) {
            return SYSTEM_NOTICE;
        }
        if (REPORT_NOTICE.id.equals(id)) {
            return REPORT_NOTICE;
        }
        if (CHECK_NOTICE.id.equals(id)){
            return CHECK_NOTICE;
        }
        if (TASK_NOTICE.id.equals(id)){
            return TASK_NOTICE;
        }
        return null;
    }
}
